package bar.dark.lee.setting.category;

import android.os.Parcel;
import android.os.Parcelable;

public class CategoryData implements Parcelable
{
	private String id;
	private String kind;
	private String count;
	
	public CategoryData(){};
	
	public CategoryData(Parcel source)
	{
		this.id = source.readString();
		this.kind = source.readString();
		this.count = source.readString();
	}

	@Override
	public int describeContents()
	{
		return 0;
	}
	
	@Override
	public void writeToParcel(Parcel dest, int flags)
	{
		dest.writeString(this.getId());
		dest.writeString(this.getKind());
		dest.writeString(this.getCount());
	}
	
	public static final Parcelable.Creator<CategoryData> CREATOR = new Creator<CategoryData>()
	{
		@Override
		public CategoryData[] newArray(int size)
		{
			return new CategoryData[size];
		}
		
		@Override
		public CategoryData createFromParcel(Parcel source)
		{
			return new CategoryData(source);
		}
	};
	
	public String getId()
	{
		return id;
	}
	public void setId(String id)
	{
		this.id = id;
	}
	public String getKind()
	{
		return kind;
	}
	public void setKind(String kind)
	{
		this.kind = kind;
	}
	public String getCount()
	{
		return count;
	}
	public void setCount(String count)
	{
		this.count = count;
	}
}
